<%@ page import="com.luzhikun.Listener.sessionBindingListener.HttpSessionBinDingTest" %>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>JSP - Hello World</title>
</head>
<body>
<h1><%= "Hello World!" %>
</h1>
<br/>
<%
//      request.setAttribute("user","吴杰");
//      request.setAttribute("user","鹿爸爸");
//      request.removeAttribute("user");
%>

<%
    HttpSessionBinDingTest student = new HttpSessionBinDingTest("吴杰", 124);
    // session绑定
    session.setAttribute("name", student);
    // session解绑
    session.removeAttribute("name");
%>
</body>
</html>